Add a reftest for flipping transforms
authorMatthias Clasen <mclasen@redhat.com>
Tue, 29 Sep 2020 00:32:27 +0000 (20:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 29 Sep 2020 01:07:51 +0000 (21:07 -0400)
Verify that a scale of -1 does in fact cause a
gradient to go the other direction.

testsuite/reftests/gradient-flip.css [new file with mode: 0644]
testsuite/reftests/gradient-flip.ref.ui [new file with mode: 0644]
testsuite/reftests/gradient-flip.ui [new file with mode: 0644]

diff --git a/testsuite/reftests/gradient-flip.css b/testsuite/reftests/gradient-flip.css
new file mode 100644 (file)
index 0000000..a949e7d
--- /dev/null
@@ -0,0 +1,14 @@
+@import "reset-to-defaults.css";
+
+#reference {
+  background: linear-gradient(to bottom, red, yellow);
+}
+
+window {
+  background: green;
+}
+
+#box1 {
+  transform: scaleY(-1);
+  background: linear-gradient(to bottom, yellow, red);
+}
diff --git a/testsuite/reftests/gradient-flip.ref.ui b/testsuite/reftests/gradient-flip.ref.ui
new file mode 100644 (file)
index 0000000..d7ae2bc
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <object class="GtkWindow" id="window1">
+    <property name="decorated">0</property>
+    <property name="default_width">200</property>
+    <property name="default_height">200</property>
+    <property name="name">reference</property>
+  </object>
+</interface>
diff --git a/testsuite/reftests/gradient-flip.ui b/testsuite/reftests/gradient-flip.ui
new file mode 100644 (file)
index 0000000..ffda6aa
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <object class="GtkWindow" id="window1">
+    <property name="decorated">0</property>
+    <property name="default_width">200</property>
+    <property name="default_height">200</property>
+    <child>
+      <object class="GtkBox">
+        <property name="name">box1</property>
+      </object>
+    </child>
+  </object>
+</interface>